package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysRoleModuleRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long moduleId;

    /**
     * Attribute moduleId Be Seted Falg
     */
    private boolean moduleIdSetted = false;

    /**
    * Attribute moduleId is Null Falg
    */
    private boolean moduleIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private long roleId;

    /**
     * Attribute roleId Be Seted Falg
     */
    private boolean roleIdSetted = false;

    /**
    * Attribute roleId is Null Falg
    */
    private boolean roleIdNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private long parentModuleId;

    /**
     * Attribute parentModuleId Be Seted Falg
     */
    private boolean parentModuleIdSetted = false;

    /**
    * Attribute parentModuleId is Null Falg
    */
    private boolean parentModuleIdNull = false;
    private long domainId;

    /**
     * Attribute domainId Be Seted Falg
     */
    private boolean domainIdSetted = false;

    /**
    * Attribute domainId is Null Falg
    */
    private boolean domainIdNull = false;
    private long moduleSortIndex;

    /**
     * Attribute moduleSortIndex Be Seted Falg
     */
    private boolean moduleSortIndexSetted = false;

    /**
    * Attribute moduleSortIndex is Null Falg
    */
    private boolean moduleSortIndexNull = false;
    private String moduleCode;

    /**
     * Attribute moduleCode Be Seted Falg
     */
    private boolean moduleCodeSetted = false;

    /**
    * Attribute moduleCode is Null Falg
    */
    private boolean moduleCodeNull = false;
    private String domainCode;

    /**
     * Attribute domainCode Be Seted Falg
     */
    private boolean domainCodeSetted = false;

    /**
    * Attribute domainCode is Null Falg
    */
    private boolean domainCodeNull = false;

    public SysRoleModuleRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get moduleId
         *
         * @return long
         */
    final public long getModuleId() {
        return moduleId;
    }

    /**
     * Set moduleId
     *
     * @param long
     */
    final public void setModuleId(long moduleId) {
        this.moduleId = moduleId;

        this.moduleIdSetted = true;

        this.setModuleIdNull(false);
    }

    /**
     * Get moduleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleIdSetted() {
        return this.moduleIdSetted;
    }

    /**
     * Set moduleId Null
     *
     */
    final public void setModuleIdNull() {
        this.moduleIdNull = true;
    }

    final public void setModuleIdNull(boolean aNullFlag) {
        this.moduleIdNull = aNullFlag;
    }

    final public boolean isModuleIdNull() {
        return this.moduleIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get roleId
         *
         * @return long
         */
    final public long getRoleId() {
        return roleId;
    }

    /**
     * Set roleId
     *
     * @param long
     */
    final public void setRoleId(long roleId) {
        this.roleId = roleId;

        this.roleIdSetted = true;

        this.setRoleIdNull(false);
    }

    /**
     * Get roleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRoleIdSetted() {
        return this.roleIdSetted;
    }

    /**
     * Set roleId Null
     *
     */
    final public void setRoleIdNull() {
        this.roleIdNull = true;
    }

    final public void setRoleIdNull(boolean aNullFlag) {
        this.roleIdNull = aNullFlag;
    }

    final public boolean isRoleIdNull() {
        return this.roleIdNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get parentModuleId
         *
         * @return long
         */
    final public long getParentModuleId() {
        return parentModuleId;
    }

    /**
     * Set parentModuleId
     *
     * @param long
     */
    final public void setParentModuleId(long parentModuleId) {
        this.parentModuleId = parentModuleId;

        this.parentModuleIdSetted = true;

        this.setParentModuleIdNull(false);
    }

    /**
     * Get parentModuleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isParentModuleIdSetted() {
        return this.parentModuleIdSetted;
    }

    /**
     * Set parentModuleId Null
     *
     */
    final public void setParentModuleIdNull() {
        this.parentModuleIdNull = true;
    }

    final public void setParentModuleIdNull(boolean aNullFlag) {
        this.parentModuleIdNull = aNullFlag;
    }

    final public boolean isParentModuleIdNull() {
        return this.parentModuleIdNull;
    }

    /**
         * Get domainId
         *
         * @return long
         */
    final public long getDomainId() {
        return domainId;
    }

    /**
     * Set domainId
     *
     * @param long
     */
    final public void setDomainId(long domainId) {
        this.domainId = domainId;

        this.domainIdSetted = true;

        this.setDomainIdNull(false);
    }

    /**
     * Get domainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainIdSetted() {
        return this.domainIdSetted;
    }

    /**
     * Set domainId Null
     *
     */
    final public void setDomainIdNull() {
        this.domainIdNull = true;
    }

    final public void setDomainIdNull(boolean aNullFlag) {
        this.domainIdNull = aNullFlag;
    }

    final public boolean isDomainIdNull() {
        return this.domainIdNull;
    }

    /**
         * Get moduleSortIndex
         *
         * @return long
         */
    final public long getModuleSortIndex() {
        return moduleSortIndex;
    }

    /**
     * Set moduleSortIndex
     *
     * @param long
     */
    final public void setModuleSortIndex(long moduleSortIndex) {
        this.moduleSortIndex = moduleSortIndex;

        this.moduleSortIndexSetted = true;

        this.setModuleSortIndexNull(false);
    }

    /**
     * Get moduleSortIndex Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleSortIndexSetted() {
        return this.moduleSortIndexSetted;
    }

    /**
     * Set moduleSortIndex Null
     *
     */
    final public void setModuleSortIndexNull() {
        this.moduleSortIndexNull = true;
    }

    final public void setModuleSortIndexNull(boolean aNullFlag) {
        this.moduleSortIndexNull = aNullFlag;
    }

    final public boolean isModuleSortIndexNull() {
        return this.moduleSortIndexNull;
    }

    /**
         * Get moduleCode
         *
         * @return String
         */
    final public String getModuleCode() {
        if (isModuleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(moduleCode);
        }
    }

    /**
     * Set moduleCode
     *
     * @param String
     */
    final public void setModuleCode(String moduleCode) {
        this.moduleCode = StringUtils.trim(moduleCode);

        this.moduleCodeSetted = true;

        this.setModuleCodeNull(this.moduleCode == null);
    }

    /**
     * Get moduleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isModuleCodeSetted() {
        return this.moduleCodeSetted;
    }

    /**
     * Set moduleCode Null
     *
     */
    final public void setModuleCodeNull() {
        this.moduleCodeNull = true;
    }

    final public void setModuleCodeNull(boolean aNullFlag) {
        this.moduleCodeNull = aNullFlag;
    }

    final public boolean isModuleCodeNull() {
        return this.moduleCodeNull;
    }

    /**
         * Get domainCode
         *
         * @return String
         */
    final public String getDomainCode() {
        if (isDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(domainCode);
        }
    }

    /**
     * Set domainCode
     *
     * @param String
     */
    final public void setDomainCode(String domainCode) {
        this.domainCode = StringUtils.trim(domainCode);

        this.domainCodeSetted = true;

        this.setDomainCodeNull(this.domainCode == null);
    }

    /**
     * Get domainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isDomainCodeSetted() {
        return this.domainCodeSetted;
    }

    /**
     * Set domainCode Null
     *
     */
    final public void setDomainCodeNull() {
        this.domainCodeNull = true;
    }

    final public void setDomainCodeNull(boolean aNullFlag) {
        this.domainCodeNull = aNullFlag;
    }

    final public boolean isDomainCodeNull() {
        return this.domainCodeNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysRoleModuleRelate) == false) {
            return false;
        }

        SysRoleModuleRelate other = (SysRoleModuleRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("domainCode=");
        buffer.append(this.domainCode);

        buffer.append("moduleCode=");
        buffer.append(this.moduleCode);

        buffer.append("parentModuleId=");
        buffer.append(this.parentModuleId);

        buffer.append("domainId=");
        buffer.append(this.domainId);

        buffer.append("moduleSortIndex=");
        buffer.append(this.moduleSortIndex);

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("moduleId=");
        buffer.append(this.moduleId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("roleId=");
        buffer.append(this.roleId);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("]");

        return buffer.toString();
    }
}
